package com.wh.executor;

public class MyThread implements Runnable {

	private int count = 1, number; 
	
	public MyThread(int number) {
		this.number = number;
		System.out.println("Create Thread-" + number);
	}
	
	@Override
	public void run() {
		while(true) {
			System.out.println("Thread-" + number + "  run:" + count);
			if(++count == 3) {
				return;
			}
		}
	}
}
